#pragma once

#include <string>
#include <iostream>
#include <GL\glui.h>
#include "View.h"

using namespace std;

class Ortho: public View
{
private:
	float near, far, left, right;
	float top, bottom;
public:
	Ortho() {}
	void setValues(float n, float f, float l, float r, float t, float b)
	{
		near = n;
		far = f;
		left = l;
		right = r;
		top = t;
		bottom = b;
	}
	void applyView() 
	{
		glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
        glMatrixMode( GL_PROJECTION );
        glLoadIdentity();
		glOrtho(left, right, bottom, top, near, far);
		glMatrixMode(GL_MODELVIEW);
		glLoadIdentity();
	}
};